//
//  UIWebView+InnerShadow.m
//  MissPaparazzi
//
//  Created by Alexey Aleshkov on 20.09.12.
//  Copyright (c) 2012 DzeTech. All rights reserved.
//


#import "UIWebView+InnerShadow.h"


@implementation UIWebView (InnerShadow)

- (BOOL)innerShadowHidden
{
	BOOL result = NO;
	
	id scrollview = [self.subviews objectAtIndex:0];
	for (UIView *subview in [scrollview subviews]) {
		if ([subview isKindOfClass:[UIImageView class]]) {
			result = subview.hidden;
			break;
		}
	}
	
	return result;
}

- (void)setInnerShadowHidden:(BOOL)innerShadowHidden
{
	id scrollview = [self.subviews objectAtIndex:0];
	for (UIView *subview in [scrollview subviews]) {
		if ([subview isKindOfClass:[UIImageView class]]) {
			subview.hidden = innerShadowHidden;
		}
	}
}

@end
